//测试类
public class Test {
    public static void main(String[] args) {
        int size=2;

        /*
        //行主序
        System.out.println("行主序");
        RowMajor rowMajor = new RowMajor(size);
        rowMajor.traverse();
        System.out.println("--------------------------------");

        //列主序
        System.out.println("列主序");
        ColMajor colMajor = new ColMajor(size);
        colMajor.traverse();
        System.out.println("--------------------------------");

        //对角遍历
        System.out.println("对角遍历");
        Diagonal diagonal=new Diagonal(size);
        diagonal.traverse();;
        System.out.println("--------------------------------");


        //反对角遍历
        System.out.println("反对角遍历");
        AntiDiagonal antiDiagonal=new AntiDiagonal(size);
        antiDiagonal.traverse();;
        System.out.println("--------------------------------");
        */

        //顺时针遍历
        System.out.println("顺时针遍历");
        Clockwise clockwise =new Clockwise(size);
        clockwise.traverse();;
        System.out.println("--------------------------------");

        //逆时针遍历
        System.out.println("逆时针遍历");
        AntiClockwise antiClockwise =new AntiClockwise(size);
        antiClockwise.traverse();;
        System.out.println("--------------------------------");
    }
}

